# import pyttsx3
#
#
# engine = pyttsx3.init()
# rate = engine.getProperty('rate')
# engine.setProperty('rate', 120)
# engine.say('the lazy dog  ,勾瑞瑞， 齐齐哈尔, 哈哈哈,阿瑟东,深刻的 ,四大皆空 ,上单python ')
# engine.runAndWait()


# engine = pyttsx3.init()
# engine.setProperty('rate',1)
# engine.say('Sally sells seashells by the seashore.')
# engine.say('Sally sells seashells by the seashore.')
# engine.runAndWait()

# import win32com.client
# speaker = win32com.client.Dispatch("SAPI.SpVoice")
# speaker.Speak("Hello,it works!")


# import pythoncom
# from win32com import client
#
# pythoncom.CoInitialize()
# engine = client.Dispatch("SAPI.SpVoice")
# # engine.Speak('Hello world')
# engine.Speak('我爱你')
#
# engine.setProperty('voice', "com.apple.speech.synthesis.voice.mei-jia")
# engine.say('从方法声明上来看，第一个参数指定的是语音驱动的名称，这个在底层适合操作系统密切相关的。')
# engine.runAndWait()



# coding:utf-8
import sys

reload(sys)
sys.setdefaultencoding('utf8')
